pp108 : open Method

open Method


This method displays the property sheet.

Syntax

propertysheetID.open(oObject)

Parameters

Parameter

Description

oObject

Required. Pointer to an object that contains information about the properties and the actual values that are to be displayed.


Return Value


No return value.

Remarks


The open method should be called only when the inline property of the component is set to 'false'. The sample code written for the method to be called on onselect event of a tree node is as follows:

Scripting

function showProperties()
{
        //Get the actual data
        var actualData = event.activeElement.gettreeItem().data;
        
        //Create a new object to be passed to the component, and set the properties to it
        var object = new Object();
        object.properties = cordys.cloneXMLDocument(propertySchema.XMLDocument.documentElement);
        
        //Set the propertyValues, which is the actual data
        object.propertyValues = actualData;
        
        //Set the event object for property change handler
        object.onpropertychange = propertyChanged;
        
        //Call the method. 'propSheet' denotes the ID of the component
        propSheet.open(object);
}


See Also


propertysheet